_get_book_manage_table = $(function() {
	Mock.mock('/get/book/manage/table', 'post', (req, res) => {
		return {
			total: "1",
			rows: [{
				b_id: "1",
				b_name: "C++",
				author: "Beken",
				price: "100",
				imageName: "xxxx.jpg",
				description: "shushushu",
				category_id: "1",
				c_name: "计算机" //目录名称
			}, ]
		}
	});
});

_get_book_category = $(function() {
	Mock.mock('/get/category/table', 'post', (req, res) => {
		return {
			total: "2",
			rows: [{
					c_id: "1", //分类号
					c_name: "电子", //分类名
					c_description: "描述" //描述
				},
				{
					c_id: "2", //分类号
					c_name: "无畏", //分类名
					c_description: "啊描述" //描述
				}
			]
		}
	});
});

_update_book = $(function() {
	Mock.mock('/op/book', 'post', (req, res) => {
		console.log(req);
		return {
			line: "1"
		}
	});
});

_delete_book = $(function() {
	Mock.mock('/delete/book', 'post', (req, res) => {
		return {
			line: "1"
		}
	});
});

_update_category = $(function() {
	Mock.mock('/op/category', 'post', (req, res) => {
		console.log(req);
		return {
			line: "1"
		}
	});
});

_delete_category = $(function() {
	Mock.mock('/delete/category', 'post', (req, res) => {
		console.log(req);
		return {
			line: "1"
		}
	});
});

_get_order_manage_table = $(function() {
	Mock.mock('/get/order/info/table', 'post', (req, res) => {
		console.log(req)
		return {
			total: "5",
			rows: [{
					orderId: "12345611111",
					info_num: "2",
					info_price: "12121",
					status: "0",
					user_id: "111",
					u_name: "张三"
				},
				{
					orderId: "20193111222",
					info_num: "1",
					info_price: "12121",
					status: "1",
					user_id: "15614223",
					u_name: "李四"
				},
				{
					orderId: "20191111222",
					info_num: "2",
					info_price: "12121",
					status: "2",
					user_id: "11156123",
					u_name: "王五"
				},
				{
					orderId: "10193111222",
					info_num: "3",
					info_price: "12121",
					status: "3",
					user_id: "1561223",
					u_name: "刻晴"
				},
				{
					orderId: "20193111322",
					info_num: "4",
					info_price: "12121",
					status: "4",
					user_id: "156123",
					u_name: "钟离"
				}
			]
		}
	});
});

_op_order_status=$(function() {
	Mock.mock('/op/order/status', 'post', (req, res) => {
		console.log(req);
		return {
			line: "1"
		}
	});
});

_get_order_item_table = $(function() {
	Mock.mock('/get/order/item/table', 'post', (req, res) => {
		console.log(req)
		return {
			total:"1",
			rows:[{
				item_id:"",      				//请求详细条目id
				b_num:"100",    				//请求书本数量
				b_price:"1000",    				//单价
				i_price:"1000",    				//请求总价
				b_id:"111",    	 				//书本id
				b_name:"C++"				 	//书本名称
			}]
		}
	});
});

_get_user_manage_tab=$(function() {
	Mock.mock('/get/user/manage/table', 'post', (req, res) => {
		console.log(req)
		return {
			total:"1",
			rows:[{
				id:"y44gd43636",      			//用户id（不可使用其登录
				u_name:"张三",    				//用户名
				cellphone:"123452455",   				//座机号码
				mobilephone:"1522268422", 				//移动电话
				address:"二仙桥",     				//地址
				email:"111111@adad.com"       				//邮箱
			}]
		}
	});
});